import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useOrderStore = defineStore(
  'order',
  () => {
    const orderId = ref('')

    const setOrder = (newOrder) => {
      orderId.value = newOrder
    }
    return {
      orderId,
      setOrder
    }
  },
  {
    persist: true
  }
)
